package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 销售单对象 sales_order
 * 
 * @author ruoyi
 * @date 2025-02-17
 */
public class SalesOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 销售订单号 */
    @Excel(name = "销售订单号")
    private String no;

    /** 单据类型 */
    private String type;

    /** 关联订单号 */
    private String assactionNo;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerName;

    /** 客户编号 */
    @Excel(name = "客户编号")
    private String customerCode;

    /** 联系人 */
    private String customerPerson;

    /** 电话 */
    private String contactPhone;

    /** 发货日期 */
    private Date deliveryDate;

    /** 备注 */
    private String info;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 制单人（登录人） */
    private String createOrderUser;

    /** 订单总额 */
    @Excel(name = "订单总额")
    private BigDecimal totalAmount;

    /** 是否入账 */
    @Excel(name = "是否入账")
    private Integer isInvoiced;

    /** 是否退货 */
    @Excel(name = "是否退货")
    private Integer hasReturn;

    /** 退货数 */
    @Excel(name = "退货数")
    private Long returnQuantity;

    /** 销售单明细信息 */
    private List<SalesOrderInfo> salesOrderInfoList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNo(String no) 
    {
        this.no = no;
    }

    public String getNo() 
    {
        return no;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setAssactionNo(String assactionNo) 
    {
        this.assactionNo = assactionNo;
    }

    public String getAssactionNo() 
    {
        return assactionNo;
    }
    public void setCustomerName(String customerName) 
    {
        this.customerName = customerName;
    }

    public String getCustomerName() 
    {
        return customerName;
    }
    public void setCustomerCode(String customerCode) 
    {
        this.customerCode = customerCode;
    }

    public String getCustomerCode() 
    {
        return customerCode;
    }
    public void setCustomerPerson(String customerPerson) 
    {
        this.customerPerson = customerPerson;
    }

    public String getCustomerPerson() 
    {
        return customerPerson;
    }
    public void setContactPhone(String contactPhone) 
    {
        this.contactPhone = contactPhone;
    }

    public String getContactPhone() 
    {
        return contactPhone;
    }
    public void setDeliveryDate(Date deliveryDate) 
    {
        this.deliveryDate = deliveryDate;
    }

    public Date getDeliveryDate() 
    {
        return deliveryDate;
    }
    public void setInfo(String info) 
    {
        this.info = info;
    }

    public String getInfo() 
    {
        return info;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setCreateOrderUser(String createOrderUser) 
    {
        this.createOrderUser = createOrderUser;
    }

    public String getCreateOrderUser() 
    {
        return createOrderUser;
    }
    public void setTotalAmount(BigDecimal totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount() 
    {
        return totalAmount;
    }
    public void setIsInvoiced(Integer isInvoiced) 
    {
        this.isInvoiced = isInvoiced;
    }

    public Integer getIsInvoiced() 
    {
        return isInvoiced;
    }
    public void setHasReturn(Integer hasReturn) 
    {
        this.hasReturn = hasReturn;
    }

    public Integer getHasReturn() 
    {
        return hasReturn;
    }
    public void setReturnQuantity(Long returnQuantity) 
    {
        this.returnQuantity = returnQuantity;
    }

    public Long getReturnQuantity() 
    {
        return returnQuantity;
    }

    public List<SalesOrderInfo> getSalesOrderInfoList()
    {
        return salesOrderInfoList;
    }

    public void setSalesOrderInfoList(List<SalesOrderInfo> salesOrderInfoList)
    {
        this.salesOrderInfoList = salesOrderInfoList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("no", getNo())
            .append("type", getType())
            .append("assactionNo", getAssactionNo())
            .append("customerName", getCustomerName())
            .append("customerCode", getCustomerCode())
            .append("customerPerson", getCustomerPerson())
            .append("contactPhone", getContactPhone())
            .append("deliveryDate", getDeliveryDate())
            .append("info", getInfo())
            .append("status", getStatus())
            .append("createOrderUser", getCreateOrderUser())
            .append("createTime", getCreateTime())
            .append("totalAmount", getTotalAmount())
            .append("isInvoiced", getIsInvoiced())
            .append("hasReturn", getHasReturn())
            .append("returnQuantity", getReturnQuantity())
            .append("salesOrderInfoList", getSalesOrderInfoList())
            .toString();
    }
}
